package edu.whu.object;

import org.dom4j.Element;

public class PropertyDefinition {
    private String name;
    private String ref;
    private String value;

    public String getName() {
        return name;
    }

    public String getRef() {
        return ref;
    }

    public String getValue() {
        return value;
    }

    public void loadProperty(Element element) {
        name = element.attribute("name").getValue();
        if(element.attribute("ref") != null) {
            ref = element.attribute("ref").getValue();
        }
        if(element.attribute("value") != null) {
            value = element.attribute("value").getValue();
        }
    }
}
